import { createApp } from 'vue'
import router from '@/router/index'
import { key, store } from '@/store'
import App from './App.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import styleImport from '@/utils/style-import'
import '@/style/basic.styl'
import utils from './utils/index'
import enums from './config/enums'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router).use(store, key).mount('#app')

app.config.globalProperties.$utils = utils
app.config.globalProperties.$enums = enums
app.config.globalProperties.$server = 'http://127.0.0.1:7001'
